package _17_Inheritance;

public class Zoo {

	public static void main(String[] args) 
	{
		Animal animal = new Animal();
		
		System.out.println(animal.className);
		
		
		animal.weight = 30;
		System.out.println(animal.weight);
		animal.breath();
		
		Cat cat = new Cat();
		System.out.println(cat.age);
		
		Dog dog = new Dog();
		dog.breath();
		
		Tiger tiger = new Tiger();
		cat.climb();
		tiger.walk();
		
		//Is a - ima sastoianie po priroda, napr. Kotkata e jivotno po priroda - pri otnoshenie Is a.. - govorim za naslediavane, ako tova neshto e / predstavliava drugoto
		//Has a - kogato obektat pritejava neshto, napr. stopanin ili kushta, tova se naricha "Composition" - izraziava otnoshenieto s drugi obekti, ako ednoto ima drugoto
		
		Zoo zoo = new Zoo();
		zoo.equals(cat);
	}

}
